home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).zip / MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).adf / Music_&_MIDI / MIDI_Math / MIDI_Math
Text File  |  1993-10-20  |  3KB  |  62 lines

  1.  
  2.                               MIDI MATH:
  3.  
  4.  
  5.     36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 
  6.  
  7.  
  8.         Computers communicate using numbers and prefer to keep it
  9.     really simple by using only 2 numbers or digits;0 or 1, we call
  10.     this BINARY.  This differs from the numbers we are all used to 0
  11.     to 9, we call this decimal.  The disadvantage with us using binary
  12.     notation is that the numbers get very large eg.  255 dec.  becomes
  13.     11111111 bin.  You can see that what is an advantage to the
  14.     computer in using only 2 digits becomes a disadvantage to humans
  15.     as the numbers can become pretty big.
  16.  
  17.         In MIDI we only need to know the numbers 0 to 255 dec.  This
  18.     is where a 3rd form of numerical expression comes in.  Hexadecimal
  19.     (16) notation is used because it allows large numbers to be
  20.     expressed using relatively few symbols.  Hex.  uses the numerals 0
  21.     to 9 as well as the letters A to F so that we count
  22.     0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10, etc.  Hence 255 dec.  becomes
  23.     11111111 bin or FF hex.  Pretty simple eh!
  24.  
  25.  
  26.         The chart MIDIFORMATTABLE1  (Textfile)  or MIDIFORMATTABLE.IFF
  27.     (graphic) will hopefully make things much clearer by showing the
  28.     relationship between BINARY, DECIMAL and HEXADECIMAL.
  29.  
  30.         Print out this chart (it'll  fit  on  an  A4 page) and hold it
  31.     sideways.  Right side to the top.  Look at all the columns of
  32.     binary numbers, use a rule across what is now the width of the
  33.     page and you should start to see something in its graphical
  34.     representation that is very interesting.  It gives an insight into
  35.     the logic of computers using binary notation.
  36.  
  37.         The MIDI spec. only uses these numbers.
  38.  
  39.         The last line of the table  "00111111",  each digit is 1 byte,
  40.     the "0" on the left is the Most significant byte (MSB) and the "1"
  41.     on the right is the Least Significant byte (LSB), all 8 bits make
  42.     1 byte.  If a bit is the smallest piece of data then you can see
  43.     that 8 bits make a byte.  1 byte makes a word and 4 words is
  44.     called a 4 byte longword.
  45.  
  46.     "0" (Bin) = Bit = Most Significant Bit
  47.     "00111111" (Bin) = 8 bits = 1 Byte = Word = "63" (DEC) = "3F" (HEX)
  48.     "F03F3340" (HEX) = 4 Bytes = 4 Byte Longword
  49.     "F03F3340 44546434 CDFA3290 54231323" = 16 Bytes
  50.  
  51.         With this simple comparison you should be able to see that the
  52.     benefits to Hex notation is of great importance in the
  53.     understanding of MIDI data.  For this reason I intend to spend 1
  54.     whole article on Binary , Decimal and Hexadecimal notation and how
  55.     it specifically relates to MIDI.  The advantage is of course that
  56.     all computer notation follows these patterns.
  57.  
  58.  
  59.  
  60.     36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 
  61.  
  62.